import os
from launch import LaunchDescription
from launch_ros.actions import Node
from ament_index_python.packages import get_package_share_directory

def generate_launch_description():
    # 创建节点
    serial_driver_node = Node(
        package='jxust_serial_driver',
        executable='serial_node',
        name='serial_driver_node',
        parameters=[os.path.join(
            get_package_share_directory('jxust_serial_driver'), 'config', 'node_params.yaml')],
        output='screen'
    )
    
    return LaunchDescription([
        serial_driver_node
    ]) 